/**  订单管理 */

import {
  httpRequest,
  UploadRequest
} from './index'

/* 获取订单列表 */
export const GetOrderList = (params) => httpRequest('order/product/list', params, 'GET')

/* 获取订单明细列表 */
export const GetOrderDetailList = (params) => httpRequest('order/product/list/mx', params, 'GET')

/* 获取订单详情 */
export const GetOrderDetail = (params) => httpRequest('order/detail/' + params, {}, 'GET')

/* 订单备注 */
export const OrderNote = (params) => httpRequest('order/note', params)

/* 整个订单-商品发货 */
export const SendOrder = (params) => httpRequest('order/product/send', params, 'POST')

/* 整个订单-修改物流订单信息 */
export const ModifyLogOrderInfo = (params) => httpRequest('order/product/send', params, 'POST')

/* 订单分包-商品发货 */
export const SendSubpackageOrder = (params) => httpRequest('order/product/send2', params, 'POST')

/* 订单分包-清除物流信息 */
export const ClearSubpackageOrder = (params) => httpRequest('order/product/send2/clear', params, 'POST')

/* 物流公司 */
export const GetLogisticsList = (params) => httpRequest('logistics/all', params, 'GET')

/* 退货单list */
export const GetReturnApplyList = (params) => httpRequest('returnApply/list', params, 'GET')

/* 退单统计数据 */
export const GetReturnApplyStatic = (params) => httpRequest('returnApply/status/info', params, 'GET')

/* 退货单详情 */
export const GetReturnApplyDetail = (params) => httpRequest('returnApply/detail/' + params, {}, 'GET')

/* 退款处理 */
export const ReturnApplyUpdate = (params) => httpRequest('returnApply/update', params)

/* 订单评价 */
export const GetOrderCommentList = (params) => httpRequest('comment/list', params, 'GET')

/* 订单评价隐藏显示 */
export const OrderCommentHide = (params) => httpRequest('comment/hide', params)

/* 订单评价回复 */
export const OrderCommentReplay = (params) => httpRequest('comment/replay', params)

/* 订单导出 */
export const OrderExportExcel = (params) => httpRequest('order/product/list', params, 'GET')

/* 订单明细数据导出 */
export const OrderDetailExportExcel = (params) => httpRequest('order/product/list/mx', params, 'GET')

/* 订单数据导入 */
export const OrderInfoImportExcel = (params) => UploadRequest('order/delivery/upload', params)
